package com.sccba.emtbusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sccba.emtbusiness.mapper.YjczFbUserMapper;
import com.sccba.emtbusiness.domain.YjczFbUser;
import com.sccba.emtbusiness.service.IYjczFbUserService;

/**
 * 发版及相关人员关联Service业务层处理
 * 
 * @author lichh
 * @date 2024-07-31
 */
@Service
public class YjczFbUserServiceImpl implements IYjczFbUserService 
{
    @Autowired
    private YjczFbUserMapper yjczFbUserMapper;

    /**
     * 查询发版及相关人员关联
     * 
     * @param pkId 发版及相关人员关联主键
     * @return 发版及相关人员关联
     */
    @Override
    public YjczFbUser selectYjczFbUserByPkId(Long pkId)
    {
        return yjczFbUserMapper.selectYjczFbUserByPkId(pkId);
    }

    /**
     * 查询发版及相关人员关联列表
     * 
     * @param yjczFbUser 发版及相关人员关联
     * @return 发版及相关人员关联
     */
    @Override
    public List<YjczFbUser> selectYjczFbUserList(YjczFbUser yjczFbUser)
    {
        return yjczFbUserMapper.selectYjczFbUserList(yjczFbUser);
    }

    /**
     * 新增发版及相关人员关联
     * 
     * @param yjczFbUser 发版及相关人员关联
     * @return 结果
     */
    @Override
    public int insertYjczFbUser(YjczFbUser yjczFbUser)
    {
        return yjczFbUserMapper.insertYjczFbUser(yjczFbUser);
    }

    /**
     * 修改发版及相关人员关联
     * 
     * @param yjczFbUser 发版及相关人员关联
     * @return 结果
     */
    @Override
    public int updateYjczFbUser(YjczFbUser yjczFbUser)
    {
        return yjczFbUserMapper.updateYjczFbUser(yjczFbUser);
    }

    /**
     * 批量删除发版及相关人员关联
     * 
     * @param pkIds 需要删除的发版及相关人员关联主键
     * @return 结果
     */
    @Override
    public int deleteYjczFbUserByPkIds(Long[] pkIds)
    {
        return yjczFbUserMapper.deleteYjczFbUserByPkIds(pkIds);
    }

    /**
     * 删除发版及相关人员关联信息
     * 
     * @param pkId 发版及相关人员关联主键
     * @return 结果
     */
    @Override
    public int deleteYjczFbUserByPkId(Long pkId)
    {
        return yjczFbUserMapper.deleteYjczFbUserByPkId(pkId);
    }

    @Override
    public void batchInsert(List<YjczFbUser> list) {
        yjczFbUserMapper.batchInsert(list);
    }

    @Override
    public void deleteByFbId(Long fbId) {
        yjczFbUserMapper.deleteByFbId(fbId);
    }

    @Override
    public List<YjczFbUser> selectListByFbIds(List<Long> list) {
        return yjczFbUserMapper.selectFbUserByFbId(list);
    }

    @Override
    public String selectGcUserNameByFbId(Long fbId) {
        return yjczFbUserMapper.selectGcUserNameByFbId(fbId);
    }


}
